package com.azier.kapacitor.script.node.nodebind.qlnodebind;

import com.azier.kapacitor.script.node.Node;
import com.azier.kapacitor.script.node.qlnode.LastNode;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/

/**
Has no constructor signature.
**/

/**
没有构造函数签名。
*
 * @author 26354*/
public interface LastNodeBind extends Node {
    default LastNode last(String field){
        LastNode nextNode = new LastNode(field);
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }
}